<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <title>layout 后台大布局 - Layui</title>
    <link rel="stylesheet" href="${ctx}/layui/css/layui.css">
</head>
<body class="layui-layout-body">
<div class="layui-layout layui-layout-admin">
    <jsp:include page="/pages/fragment/header.jsp"></jsp:include>
    <jsp:include page="/pages/fragment/left-nav.jsp"></jsp:include>



    <div class="layui-body">
        <!-- 内容主体区域 -->
        <div style="padding: 15px;">
            <form class="layui-form" action="${ctx}/goods/modify" method="post"  >
                <input type="hidden" value="${goodsInfo.id}" name="id">
                <div class="layui-form-item">
                    <label class="layui-form-label">商品名称：</label>
                    <div class="layui-input-inline">
                        <input type="text" name="goodsname"  value="${goodsInfo.goodsname}" lay-verify="" placeholder="请输入标题" autocomplete="off" class="layui-input">
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label">商品编号：</label>
                    <div class="layui-input-inline">
                        <input type="text" name="goodssn"  value="${goodsInfo.goodssn}" lay-verify="" placeholder="请输入标题" autocomplete="off" class="layui-input">
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label">市场价：</label>
                    <div class="layui-input-inline">
                        <input type="text" name="marketprice"  value="${goodsInfo.marketprice}" lay-verify="" placeholder="请输入标题" autocomplete="off" class="layui-input">
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label">优惠价：</label>
                    <div class="layui-input-inline">
                        <input type="text" name="realprice" value="${goodsInfo.realprice}"  lay-verify="" placeholder="请输入标题" autocomplete="off" class="layui-input">
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label">库存：</label>
                    <div class="layui-input-inline">
                        <input type="text" name="num" value="${goodsInfo.num}"  lay-verify="" placeholder="请输入标题" autocomplete="off" class="layui-input">
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label">单位：</label>
                    <div class="layui-input-inline">
                        <input type="text" name="unit"  value="${goodsInfo.unit}" lay-verify="" placeholder="请输入标题" autocomplete="off" class="layui-input">
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label">状态：</label>
                    <div class="layui-input-block">

                        <input type="radio"  <c:if test="${goodsInfo.state eq 1}">checked</c:if> name="state" value="1" title="上架"  />
                        <input type="radio" <c:if test="${goodsInfo.state eq 2}">checked</c:if> name="state" value="2" title="下架"  />
                    </div>
                </div>
                <div class="layui-form-item layui-form-text">
                    <label class="layui-form-label">商品规格</label>
                    <div class="layui-input-block">
                        <input type="text" name="goodsformat"  value="${goodsInfo.goodsformat}" placeholder="请输入内容" class="layui-textarea"></input>
                    </div>
                </div>
                <div class="layui-form-item layui-form-text">
                    <label class="layui-form-label">商品说明</label>
                    <div class="layui-input-block">
                        <input type="text" name="note" value="${goodsInfo.note}" placeholder="请输入内容" class="layui-textarea"></input>
                    </div>
                </div>
                <div class="layui-form-item">
                    <div class="layui-input-block">
                        <button class="layui-btn" lay-submit lay-filter="formDemo">保存</button>
                    </div>
                </div>
            </form>
        </div>

        <div class="layui-footer">
            <!-- 底部固定区域 -->
            © layui.com - 底部固定区域
        </div>
    </div>
        <script src="${ctx}/layui/layui.js"></script>
        <script>
            //JavaScript代码区域
            layui.use(['element','form','jquery','layer'], function(){
                var element = layui.element;
                var form = layui.form;
                var $ = layui.jquery;
                var layer = layui.layer;
            });
        </script>
</body>
</html>